import http from '@/utils/http'
// 填写订单-获取预付订单
export function getMemberOrderPreAPI () {
  return http({
    method: 'GET',
    url: '/member/order/pre'
  })
}
// 提交订单-获取预付订单
export function postMemberOrderAPI (data) {
  return http({
    method: 'POST',
    url: '/member/order',
    data
  })
}
// 填写订单-获取立即购买订单
export function getMemberOrderPreNowAPI (data) {
  return http({
    method: 'GET',
    url: '/member/order/pre/now',
    data
  })
}
// 填写订单-获取立即购买订单
export function getMemberOrderDetailAPI (id) {
  return http({
    method: 'GET',
    url: `/member/order/${id}`
  })
}
// 获取微信支付参数
export function getPayWxPayMiniPayAPI (data) {
  return http({
    method: 'GET',
    url: `/pay/wxPay/miniPay`,
    data
  })
}
// 获模拟支付-内测版
export function getPayMockAPI (data) {
  return http({
    method: 'GET',
    url: `/pay/mock`,
    data
  })
}
